package com.xiaoxiang.live.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonAlias;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (Room)表实体类
 *
 * @author haha
 * @since 2022-05-03 22:14:05
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Room extends Model<Room> {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 房间名称
     */
    @JsonAlias("username")
    private String name;

    /**
     * 直播id
     */
    private String liveId;

    /**
     * 推流地址
     */
    private String pushUrl;

    /**
     * 游戏id
     */
    private Long gameId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 是否开播
     */
    private Boolean isOpen;

    /**
     * 热度
     */
    private Long heat;

    /**
     * 封面url
     */
    private String coverUrl;

    /**
     * 标题
     */
    private String title;
}
